package fmu.pi.utils;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

public class PropertiesUtil {

	public static String getProperty(String key) {

		String retorno = "";

		try {
			Properties properties = System.getProperties(); 

			//final String caminho = "src\\fmu\\pi\\model\\connector\\configuracao\\config.txt";
			final String caminho = "config.properties";

			properties.load(new FileInputStream(caminho));

			retorno = properties.getProperty(key);

		} catch(IOException exception) {
			exception.printStackTrace(); 
		}

		return retorno;
	}
}
